
<template>
    <rx-dialog @handOk="handleSubmit" @cancel="cancel">
        <rx-layout>
            <div slot="center">
                <a-form-model ref="form"  :model="mdl" :rules="rules" :label-col="labelCol" :wrapper-col="wrapperCol">
                                <a-form-model-item  :label="i18n('form.level','级别')" prop = "level">
                                        <a-input-number :min="0" :max="1000000" :placeholder="i18n('form.level','级别','input')"
                                                        v-model="mdl.level"/>
                                </a-form-model-item>
                                <a-form-model-item  :label="i18n('form.module','模块')" prop = "module">
                                        <a-input :placeholder="i18n('form.module','模块','input')" v-model="mdl.module"/>
                                </a-form-model-item>
                                <a-form-model-item  :label="i18n('form.content','内容')" prop = "content">
                                        <a-input :placeholder="i18n('form.content','内容','input')" v-model="mdl.content"/>
                                </a-form-model-item>
                                <a-form-model-item  :label="i18n('form.deletion','逻辑删除')" prop = "deleted">
                                        <a-input-number :min="0" :max="1000000" :placeholder="i18n('form.deletion','逻辑删除','input')"
                                                        v-model="mdl.deleted"/>
                                </a-form-model-item>
                </a-form-model>


            </div>
        </rx-layout>
    </rx-dialog>
</template>
<script>
    import SysDebugInfoApi from '@/api/system/core/sysDebugInfo'
    import {RxDialog,BaseFormModel} from "@lowcode/jpaas-common-lib";


    export default {
        name: 'SysDebugInfoEdit',
        mixins:[BaseFormModel],
        components: {
            RxDialog,
        },
        data(){
            return {
                /**
                 * 子表列表，以及表格属性
                 */
                subTable:{
        },
            rules: {
                level: [{ required:false,message:this.i18n('form.level','级别','input'), trigger: 'change' }],
                module: [{ required:false,message:this.i18n('form.module','模块','input'), trigger: 'change' }],
                content: [{ required:false,message:this.i18n('form.content','内容','input'), trigger: 'change' }],
                deleted: [{ required:false,message:this.i18n('form.deletion','逻辑删除','input'), trigger: 'change' }],
            }
        }

        },
        methods: {
            i18n(name,text,key){
                return this.$ti18(name,text,"SysDebugInfo",key);
            },
            get(id){
                return SysDebugInfoApi.get(id);
            },

            save(){
                return SysDebugInfoApi.save(this.mdl);
            },

        }
    }
</script>
<style>
    .relick a{
        margin-right: 10px;
    }

</style>
